﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShipmentStatByOrderRptList.aspx.cs"
    EnableViewState="false" EnableEventValidation="false" Inherits="WMS6.Web.Analytics.ShipmentStatByOrderRptList"
    meta:resourcekey="PageResource1" %>

<%@ PreviousPageType VirtualPath="~/Analytics/ShipmentStatByOrderRptQuery.aspx" %>
<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ShipmentStatByOrderRptList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script type="text/javascript">

        window.onload = function() {
            initListPage();
        }

        function returnSearch() {
            var from = document.getElementById("hdnFrom").value;
            if (from != "") {
                window.location.href = "ShipmentStatByOrderRptQuery.aspx";
            }
            else {
                window.history.go(-1);
            }
        }
    </script>

</head>
<body>
    <form id="F15461" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblShipmentStatByOrderRptList" runat="server" CssClass="label_header"
                            Text="发货统计按单汇总" meta:resourcekey="lblShipmentStatByOrderRptList"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" Text="<%$ Resources:ButtonResource,btnRefresh %>"
                            OnClick="btnRefresh_Click" meta:resourcekey="btnRefreshResource1" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div id="div_List">
                    <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsgResource1"></asp:Label>
                    </div>
                    <asp:GridView ID="gvShipmentStat" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                        CssClass="gridview" DataKeyNames="ORDER_ID" PageSize="20" OnInit="gvShipmentStat_Init"
                        Width="2390px" OnRowDataBound="gvShipmentStat_RowDataBound" OnSorting="gvShipmentStat_Sorting"
                        meta:resourcekey="gvShipmentOderRpt">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="BoundField">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="TemplateField">
                                <HeaderTemplate>
                                    <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('15461','gvShipmentStat');"
                                        onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                    <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvShipmentStat');"
                                        meta:resourcekey="CheckBox1" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvShipmentStat');"
                                        meta:resourcekey="CheckBox2" />
                                </FooterTemplate>
                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ORDER_ID" HeaderText="订单号" FooterText="订单号" SortExpression="ORDER_ID"
                                meta:resourcekey="ORDER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ORDER_STATUS" HeaderText="状态" FooterText="状态" SortExpression="ORDER_STATUS"
                                meta:resourcekey="ORDER_STATUS">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="订货数量" HeaderText="订货数量" SortExpression="ORIGINAL_QTY"
                                meta:resourcekey="ORIGINAL_QTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblORIGINAL_QTY" runat="server" Text='<%# GetPreferenceDigit(Eval("ORIGINAL_QTY").ToString()) %>'
                                        meta:resourcekey="lblORIGINAL_QTY"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="发货数量" HeaderText="发货数量" SortExpression="QTY" meta:resourcekey="QTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("QTY").ToString()) %>'
                                        meta:resourcekey="lblQTY"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="重量" HeaderText="重量" SortExpression="GROSS_WGT" meta:resourcekey="GROSS_WGT">
                                <ItemTemplate>
                                    <asp:Label ID="lblGROSS_WGT" runat="server" Text='<%# GetPreferenceDigit(Eval("GROSS_WGT").ToString()) %>'
                                        meta:resourcekey="lblGROSS_WGT"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="体积" HeaderText="体积" SortExpression="CUBE" meta:resourcekey="CUBE">
                                <ItemTemplate>
                                    <asp:Label ID="lblCUBE" runat="server" Text='<%# GetPreferenceDigit(Eval("CUBE").ToString()) %>'
                                        meta:resourcekey="lblCUBE"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="金额" HeaderText="金额" SortExpression="PRICE" meta:resourcekey="PRICE">
                                <ItemTemplate>
                                    <asp:Label ID="lblPRICE" runat="server" Text='<%# GetPreferenceDigit(Eval("PRICE").ToString()) %>'
                                        meta:resourcekey="lblPRICE"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="REFERENCE_NUM" HeaderText="销售订单号" FooterText="销售订单号" SortExpression="REFERENCE_NUM"
                                meta:resourcekey="REFERENCE_NUM">
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:BoundField>
                            <asp:BoundField DataField="EXTERN_ORDER_ID" HeaderText="外部订单号" FooterText="外部订单号"
                                SortExpression="EXTERN_ORDER_ID" meta:resourcekey="EXTERN_ORDER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ORDER_TYPE" HeaderText="类型" FooterText="类型" SortExpression="ORDER_TYPE"
                                meta:resourcekey="ORDER_TYPE">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CUSTOMER_ID" HeaderText="客户代码" FooterText="客户代码" SortExpression="CUSTOMER_ID"
                                meta:resourcekey="CUSTOMER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CUSTOMER_NAME" HeaderText="客户名称" FooterText="客户名称" SortExpression="CUSTOMER_NAME"
                                meta:resourcekey="CUSTOMER_NAME">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CUSTOMER_ADDRESS" HeaderText="发货地址" FooterText="发货地址"
                                SortExpression="CUSTOMER_ADDRESS" meta:resourcekey="CUSTOMER_ADDRESS">
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CARRIER_ID" HeaderText="承运商代码" FooterText="承运商代码" SortExpression="CARRIER_ID"
                                meta:resourcekey="CARRIER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CARRIER_NAME" HeaderText="承运商名称" FooterText="承运商名称" SortExpression="CARRIER_NAME"
                                meta:resourcekey="CARRIER_NAME">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="制单日期" HeaderText="制单日期" SortExpression="CREATED_DATE"
                                meta:resourcekey="CREATED_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblCREATED_DATE" runat="server" Text='<%# GetPreferenceShortDate(Eval("CREATED_DATE").ToString()) %>'
                                        meta:resourcekey="lblCREATED_DATE"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="要求发货日期" HeaderText="要求发货日期" SortExpression="REQUESTED_SHIP_DATE"
                                meta:resourcekey="REQUESTED_SHIP_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblREQUESTED_SHIP_DATE" runat="server" Text='<%# GetPreferenceShortDate(Eval("REQUESTED_SHIP_DATE").ToString()) %>'
                                        meta:resourcekey="lblREQUESTED_SHIP_DATE"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="实际发货日期" HeaderText="实际发货日期" SortExpression="ACTUAL_SHIP_DATE"
                                meta:resourcekey="ACTUAL_SHIP_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblACTUAL_SHIP_DATE" runat="server" Text='<%# GetPreferenceShortDate(Eval("ACTUAL_SHIP_DATE").ToString()) %>'
                                        meta:resourcekey="lblACTUAL_SHIP_DATE"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="REMARK" HeaderText="备注" FooterText="备注" SortExpression="REMARK"
                                meta:resourcekey="REMARK">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                    <div>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr style="height: 10px">
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="Result_01">
                                    总计：
                                </td>
                                <td class="Result_02">
                                    <table>
                                        <tr>
                                            <td style="margin-right: 20px;">
                                                &nbsp; &nbsp;
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalOriginalQty" runat="server" Text="订货数量:" class="label" meta:resourcekey="lblTotalOriginalQtyResource1"></asp:Label>
                                                <asp:Label ID="lblTotalOriginalQtyText" runat="server" class="label" Style="margin-right: 10px;"
                                                    meta:resourcekey="lblTotalOriginalQtyTextResource1"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalShippedQty" runat="server" Text="发货数量:" class="label" meta:resourcekey="lblTotalShippedQtyResource1"></asp:Label>
                                                <asp:Label ID="lblTotalShippedQtyText" runat="server" class="label" Style="margin-right: 10px;"
                                                    meta:resourcekey="lblTotalShippedQtyTextResource1"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalGross" runat="server" Text="总重量:" class="label" meta:resourcekey="lblTotalGrossResource1"></asp:Label>
                                                <asp:Label ID="lblTotalGrossText" runat="server" class="label" Style="margin-right: 10px;"
                                                    meta:resourcekey="lblTotalGrossTextResource1"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalCube" runat="server" Text="总体积:" class="label" meta:resourcekey="lblTotalCubeResource1"></asp:Label>
                                                <asp:Label ID="lblTotalCubeText" runat="server" class="label" Style="margin-right: 10px;"
                                                    meta:resourcekey="lblTotalCubeTextResource1"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalPrice" runat="server" Text="总金额:" class="label" meta:resourcekey="lblTotalPriceResource1"></asp:Label>
                                                <asp:Label ID="lblTotalPriceText" runat="server" class="label" Style="margin-right: 10px;"
                                                    meta:resourcekey="lblTotalPriceTextResource1"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="Result_03">
                                </td>
                            </tr>
                            <tr style="height: 20px">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div id="div_pager">
                    <uc1:Pager ID="PagerFooter" runat="server" OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click"
                        OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click" />
                </div>
                <input type="hidden" runat="server" id="hdnFrom" />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnList" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnRefresh" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <input type="hidden" id="hdnActionID" runat="server" />
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$ Resources:ButtonResource,btnSearch %>"
                            CssClass="button" Enabled="False" OnClientClick="javascript:window.location.href='ShipmentStatByOrderRptQuery.aspx';return false;"
                            meta:resourcekey="btnSearchResource1" />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$ Resources:ButtonResource,btnReSearch %>"
                            CssClass="button" Enabled="False" OnClientClick="javascript:returnSearch();return false;"
                            meta:resourcekey="btnReSearchResource1" />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$ Resources:ButtonResource,btnList %>"
                            CssClass="button" Enabled="False" OnClick="btnList_Click" meta:resourcekey="btnListResource1" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$ Resources:ButtonResource,btnExport %>"
                            CssClass="button" Enabled="False" OnClick="btnExport_Click" meta:resourcekey="btnExportResource1" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
